package com.zjol

import scala.collection.SortedMap

/**
  * Created by Administrator on 2017/3/27.
  */
object map2 {


  def main(args: Array[String]): Unit = {

    var map=Map("booke"->1,"name"->23)
    for((k,v)<-map) yield  println(k+"->"+v)

    val sorce=map.getOrElse("name",0)

    val sortMap=SortedMap("a"->1,"b"->2,"1"->2)
    for((k,v)<-sortMap) println(k+"->"+v)

    val tuple=(1,2,"zhao")
    val (_,b,c)=tuple
    println(b)



  }

}
